package com.orange.educms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.orange.educms.entity.CrmBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import com.orange.educms.entity.vo.BannerQuery;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author orange
 * @since 2021-12-22
 */
public interface CrmBannerService extends IService<CrmBanner> {

    //条件分页查询banner
    void pageQuery(Page<CrmBanner> bannerPage, BannerQuery bannerQuery);

    //查询所有轮播图
    List<CrmBanner> getAllBanner();

    //添加banner
    boolean saveBanner(CrmBanner crmBanner);

    //根据id删除banner
    boolean removeBannerById(String id);

    //修改banner
    boolean updateBannerById(CrmBanner crmBanner);
}
